package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcServiceOrderCommentMapper;
import com.csun.cmny.provider.model.domain.OmcServiceOrderComment;
import com.csun.cmny.provider.model.vo.service.ServiceOrderCommentVo;
import com.csun.cmny.provider.service.OmcServiceOrderCommentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2020-08-25 09:33
 * @Description:
 */
@Slf4j
@Service
@Transactional
public class OmcServiceOrderCommentServiceImpl extends BaseService<OmcServiceOrderComment> implements OmcServiceOrderCommentService {

    @Resource
    private OmcServiceOrderCommentMapper commentMapper;


    @Override
    public List<ServiceOrderCommentVo> selectMessageByServiceOrderId(Long id) {
        return commentMapper.selectMessageByServiceOrderId(id);
    }
}
